////////////////////////////////////////////////////////////////////////////////
// Copyright 2009 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   XLS
// AUTHOR           :   Saint Peng 
// DATE CREATE      :   2009/05/13
// DESCRIPTION      :   a VO file for the function, XLS
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2009/05/13   Saint Peng      1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.common.xls.vo;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;

import com.erp.framework.model.vo.SimpleSearchMaintStyleVo;
import com.erp.framework.model.pk.SimpleSearchMaintStylePk;
import com.erp.app.common.xls.pk.XlsHdrPk;
import com.erp.framework.types.CustomBigDecimal;
import com.erp.framework.types.CustomBigInteger;
import com.erp.framework.types.CustomSqlDate;
import com.erp.framework.types.CustomTimestamp;
import com.erp.framework.types.CustomUtilDate;

/**
* <p>A <strong>VO</strong>(Value Object) is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this class is to store the data retrieved from the database,
* and the converted data from the web browsers.
*
* @author          Saint Peng 
* @version 1.0     2009/05/13
* @since           FrameWork 1.0
*
*/
public class XlsHdrVo extends SimpleSearchMaintStyleVo {

	//DB Table Name: T_XLS_HDR

	//PK Attributes
	private String companyCode;                      //DB Column Name: COMPANY_CODE
	private String menuId;                           //DB Column Name: MENU_ID
	private String funId;                            //DB Column Name: FUN_ID

	//Other Attributes
	private CustomBigInteger hdrHdrFr;               //DB Column Name: HDR_FR
	private CustomBigInteger hdrHdrTo;               //DB Column Name: HDR_TO
	private CustomBigInteger hdrDtlFr;               //DB Column Name: DTL_FR
	private CustomBigInteger hdrDtlTo;               //DB Column Name: DTL_TO
	private CustomBigInteger hdrEndFr;               //DB Column Name: END_FR
	private CustomBigInteger hdrEndTo;               //DB Column Name: END_TO
	private String hdrIsMain;                        //DB Column Name: IS_MAIN
	private String hdrFileName;

	public String getHdrFileName() {
		return hdrFileName;
	}

	public void setHdrFileName(String hdrFileName) {
		this.hdrFileName = hdrFileName;
	}

	/**
	* Stores the detail child names by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected  void setChildTypesName() {
		this.childTypesName=new String[2];
		this.childTypesName[0]="com.erp.app.common.xls.vo.XlsSqlVo";
		this.childTypesName[1]="com.erp.app.common.xls.vo.XlsCellVo";
	}

	/**
	* Stores the table schema name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected void setTableSchemaName() {
		this.tableSchemaName="com.erp.app.common.xls.schema.XlsHdrSchema";
	}

	/**
	* Stores the detail child table schema names by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected  void setChildTableSchemaNames() {
		this.childTableSchemaNames=new String[2];
		this.childTableSchemaNames[0]="com.erp.app.common.xls.schema.XlsSqlSchema";
		this.childTableSchemaNames[1]="com.erp.app.common.xls.schema.XlsCellSchema";
	}

	/**
	* Stores the DAO name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected void setDaoName() {
		this.daoName="com.erp.app.common.xls.dao.XlsHdrDao";
	}

	/**
	* Stores the biz logic name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected void setBizLogicName() {
		this.bizLogicName = "com.erp.app.common.xls.bizLogic.XlsBizLogic";
	}

	/**
	* Returns the primary key for this class.
	* @return      primary key of this class
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	public SimpleSearchMaintStylePk getSearchMaintStylePk() {
		return new XlsHdrPk(this.companyCode, this.menuId, this.funId);
	}

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, menuId = " + this.menuId
			+ "\n, funId = " + this.funId + "}\n";

		String colStr = "COL: {hdrHdrFr = " + this.hdrHdrFr
			+ "\n, hdrHdrTo = " + this.hdrHdrTo
			+ "\n, hdrDtlFr = " + this.hdrDtlFr
			+ "\n, hdrDtlTo = " + this.hdrDtlTo
			+ "\n, hdrEndFr = " + this.hdrEndFr
			+ "\n, hdrEndTo = " + this.hdrEndTo
			+ "\n, hdrIsMain = " + this.hdrIsMain + "}\n";

		return "XlsHdrVo.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getMenuId() {
		return this.menuId;
	}

	public String getFunId() {
		return this.funId;
	}

	public CustomBigInteger getHdrHdrFr() {
		return this.hdrHdrFr;
	}

	public CustomBigInteger getHdrHdrTo() {
		return this.hdrHdrTo;
	}

	public CustomBigInteger getHdrDtlFr() {
		return this.hdrDtlFr;
	}

	public CustomBigInteger getHdrDtlTo() {
		return this.hdrDtlTo;
	}

	public CustomBigInteger getHdrEndFr() {
		return this.hdrEndFr;
	}

	public CustomBigInteger getHdrEndTo() {
		return this.hdrEndTo;
	}

	public String getHdrIsMain() {
		return this.hdrIsMain;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public void setFunId(String funId) {
		this.funId = funId;
	}

	public void setHdrHdrFr(CustomBigInteger hdrHdrFr) {
		this.hdrHdrFr = hdrHdrFr;
	}

	public void setHdrHdrTo(CustomBigInteger hdrHdrTo) {
		this.hdrHdrTo = hdrHdrTo;
	}

	public void setHdrDtlFr(CustomBigInteger hdrDtlFr) {
		this.hdrDtlFr = hdrDtlFr;
	}

	public void setHdrDtlTo(CustomBigInteger hdrDtlTo) {
		this.hdrDtlTo = hdrDtlTo;
	}

	public void setHdrEndFr(CustomBigInteger hdrEndFr) {
		this.hdrEndFr = hdrEndFr;
	}

	public void setHdrEndTo(CustomBigInteger hdrEndTo) {
		this.hdrEndTo = hdrEndTo;
	}

	public void setHdrIsMain(String hdrIsMain) {
		this.hdrIsMain = hdrIsMain;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


}